package com.warehouseprovider.controller;

import entity.ResponseMessage;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import service.ZUserService;

import javax.annotation.Resource;

@Controller
@CrossOrigin
@RequestMapping("/zuser")
public class ZUserController {
    private Logger logger=Logger.getLogger(this.getClass());

    @Resource
    private ZUserService zUserService;

    @RequestMapping("/getQueryWarehouse")
    @ResponseBody
    public ResponseMessage getQueryWarehouse(){
        logger.info("ZUserController zuser getQueryWarehouse is start...");
        ResponseMessage msg=new ResponseMessage();
        msg=zUserService.getQueryWarehouse();
        return msg;
    }
}
